Integrand size = 10, antiderivative size = 7 \[ \int \frac {\tan (x)}{\cot (x)+\csc (x)} \, dx=-x+\text {arctanh}(\sin (x)) \]
[Out]
Time = 0.11 (sec) , antiderivative size = 7, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {4477, 2918, 3855, 8} \[ \int \frac {\tan (x)}{\cot (x)+\csc (x)} \, dx=\text {arctanh}(\sin (x))-x \]
[In]
[Out]
Rule 8
Rule 2918
Rule 3855
Rule 4477
Rubi steps \begin{align*} \text {integral}& = \int \frac {\sin (x) \tan (x)}{1+\cos (x)} \, dx \\ & = -\int 1 \, dx+\int \sec (x) \, dx \\ & = -x+\text {arctanh}(\sin (x)) \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(36\) vs. \(2(7)=14\).
Time = 0.06 (sec) , antiderivative size = 36, normalized size of antiderivative = 5.14 \[ \int \frac {\tan (x)}{\cot (x)+\csc (x)} \, dx=-x-\log \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )+\log \left (\cos \left (\frac {x}{2}\right )+\sin \left (\frac {x}{2}\right )\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(24\) vs. \(2(7)=14\).
Time = 0.32 (sec) , antiderivative size = 25, normalized size of antiderivative = 3.57
method | result | size |
default | \(\ln \left (\tan \left (\frac {x}{2}\right )+1\right )-\ln \left (\tan \left (\frac {x}{2}\right )-1\right )-2 \arctan \left (\tan \left (\frac {x}{2}\right )\right )\) | \(25\) |
risch | \(-x -\ln \left ({\mathrm e}^{i x}-i\right )+\ln \left (i+{\mathrm e}^{i x}\right )\) | \(25\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 20 vs. \(2 (7) = 14\).
Time = 0.27 (sec) , antiderivative size = 20, normalized size of antiderivative = 2.86 \[ \int \frac {\tan (x)}{\cot (x)+\csc (x)} \, dx=-x + \frac {1}{2} \, \log \left (\sin \left (x\right ) + 1\right ) - \frac {1}{2} \, \log \left (-\sin \left (x\right ) + 1\right ) \]
[In]
[Out]
\[ \int \frac {\tan (x)}{\cot (x)+\csc (x)} \, dx=\int \frac {\tan {\left (x \right )}}{\cot {\left (x \right )} + \csc {\left (x \right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 39 vs. \(2 (7) = 14\).
Time = 0.30 (sec) , antiderivative size = 39, normalized size of antiderivative = 5.57 \[ \int \frac {\tan (x)}{\cot (x)+\csc (x)} \, dx=-2 \, \arctan \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) + \log \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1} + 1\right ) - \log \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1} - 1\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 22 vs. \(2 (7) = 14\).
Time = 0.29 (sec) , antiderivative size = 22, normalized size of antiderivative = 3.14 \[ \int \frac {\tan (x)}{\cot (x)+\csc (x)} \, dx=-x + \log \left ({\left | \tan \left (\frac {1}{2} \, x\right ) + 1 \right |}\right ) - \log \left ({\left | \tan \left (\frac {1}{2} \, x\right ) - 1 \right |}\right ) \]
[In]
[Out]
Time = 23.40 (sec) , antiderivative size = 11, normalized size of antiderivative = 1.57 \[ \int \frac {\tan (x)}{\cot (x)+\csc (x)} \, dx=2\,\mathrm {atanh}\left (\mathrm {tan}\left (\frac {x}{2}\right )\right )-x \]
[In]
[Out]